package com.hh.admin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author hxn
 * @since 2018-01-16
 */
@TableName("sys_group_user")
public class SysGroupUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 用户表主键ID
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 组织结构表主键ID
     */
	@TableField("group_id")
	private Long groupId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	@Override
	public String toString() {
		return "SysGroupUser{" +
			"id=" + id +
			", userId=" + userId +
			", groupId=" + groupId +
			"}";
	}
}
